/*
 ------------------------------------------------------------------------------
 Copyright (C) 2013 Eternal Games.

 This file is part of the EternalTech source code.

 The EternalTech source code is free software; you can redistribute it and/or
 modify it under the terms of the GNU General Public License as published by
 the Free Software Foundation; either version 2 of the License, or (at your
 option) any later version.

 The EternalTech source code is distributed in the hope that it will be useful,
 but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
 or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
 more details.

 You should have received a copy of the GNU General Public License along with
 the EternalTech source code; if not, write to the Free Software Foundation, Inc.,
 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
 ------------------------------------------------------------------------------
*/


//
// cl_demo.cpp - demo recording and playback
//


#include "client.h"


/*
 ==============================================================================

 DEMO RECORDING

 ==============================================================================
*/


/*
 ==================
 CL_FindDemoName
 ==================
*/
static bool CL_FindDemoName (char *name, int maxLength){

	static int	demoNumber;

	while (demoNumber <= 9999){
		Str_SPrintf(name, maxLength, "demos/demo_%04i.demo", demoNumber);

		if (!FS_FileExists(name))
			break;

		demoNumber++;
	}

	if (demoNumber == 10000)
		return false;

	demoNumber++;

	return true;
}

/*
 ==================
 
 ==================
*/
void CL_WriteDemoMessage (){

}

/*
 ==================
 
 ==================
*/
void CL_RecordDemo_f (){

	if (Cmd_Argc() > 2){
		Com_Printf("Usage: recordDemo [name]\n");
		return;
	}
}

/*
 ==================
 
 ==================
*/
void CL_StopRecording_f (){

}


/*
 ==============================================================================

 DEMO PLAYBACK

 ==============================================================================
*/


/*
 ==================
 
 ==================
*/
void CL_PlayDemo_f (){

	if (Cmd_Argc() != 2){
		Com_Printf("Usage: playDemo <name>\n");
		return;
	}
}

/*
 ==================
 
 ==================
*/
void CL_TimeDemo_f (){

	if (Cmd_Argc() != 2){
		Com_Printf("Usage: timeDemo <name>\n");
		return;
	}
}